import { createStore } from 'vuex'
const store = createStore({
  state () {
    return {
      // sys_int:false,
      os:"",
      version:"0.0.0",
      true_address: "",//
      task_dir:"",
      task:{
        task_name:"",
        tifs:[],
        data_dir:"",
        sensors:[],
        prop:undefined
      },
      open_create:2,//open 1 create2

      last_dom:"",
      lst_dem:"",

      sets:{
        system_common:{},
        system_ctr:{},
        system_ccd:{},
        system_mul:{},
        system_cal:{},
      },
      sensors:[],
      sensor_type:[
        {
          name :"Optical_Linear",
          value:"Optical_Linear"
        },
        {
          name :"Optical_Frame",
          value:"Optical_Frame"
        },
        {
          name :"Linear_Swing",
          value:"Linear_Swing"
        },
      ],
      time_type:[
        {
          name :"格林乔治时间",
          value:"GMT"
        },
        {
          name :"北京时间",
          value:"BJ"
        },
      ],
      zitai_type:[
        {
          name :"J2000",
          value:"J2000"
        },
        {
          name :"WGS84",
          value:"WGS84"
        },
      ],
      InnerMdl_type:[
        {
          name :"LookAngle",
          value:"LookAngle"
        },
        {
          name :"Distortion",
          value:"Distortion"
        },
      ],
      OrbitInterpolation_modal:[
        {
          name :"Poly_Ep",
          value:"Poly_Ep"
        },
        {
          name :"Lagrang_Ep",
          value:"Lagrang_Ep"
        },
      ],
      AttInterpolation_modal:[
        {
          name :"Linear_Quater",
          value:"Linear_Quater"
        },
        {
          name :"Linear_Euler",
          value:"Linear_Euler"
        },
        {
          name :"Poly_Euler",
          value:"Poly_Euler"
        },
        {
          name :"Spline_Euler",
          value:"Spline_Euler"
        },
      ],
      TimeInterpolation_modal:[
        {
          name :"InterpolationTime",
          value:"InterpolationTime"
        },
        {
          name :"IdentyItegratime",
          value:"IdentyItegratime"
        },
      ],
      LookAngleCalc_modal:[
        {
          name :"Direct",
          value:"Direct"
        },
        {
          name :"Distortion",
          value:"Distortion"
        },
      ],
      yes_not:[
        {
          label:"是",
          value:"1"
        },
        {
          label:"否",
          value:"0"
        },
      ],
      matchMethods:[
        {
            name :"lscorr最小二乘法",
            value:"lscorr"
        },
        {
            name :"sift 匹配",
            value:"sift"
        },
        {
            name :"cosi相位相关匹配",
            value:"cosi"
        },
        {
            name :"geocorr几何结构匹配",
            value:"geocorr"
        },
      ],
      cal_solve_methods:[
        {
          name :"iccv",
          value:"iccv"
        },
        {
          name :"re",
          value:"re"
        },
      ],
      targetPlanets:[
        {
            label:"地球",
            value:"Earth"
        },
        // {
        //     label:"月球",
        //     value:"Moon"
        // },
        // {
        //     label:"火星",
        //     value:"Mars"
        // },
      ],
      
      //1unable 2waiting 3running 4success 5error
      task_status:[
        {
          name:"不可用",
          value:1
        },
        {
          name:"等待中",
          value:2
        },
        {
          name:"运行中",
          value:3
        },
        {
          name:"成功",
          value:4
        },
        {
          name:"错误",
          value:5
        },
      ],








      

      tileInfo_4326:{
        dpi: 90.71428571427429,
        size: 256,
        origin: {
          x: -180,
          y: 90
        },
        spatialReference: {
          wkid: 4326
        },
        lods: [
          { level: 1, levelValue: 1, resolution: 0.703125, scale: 295497593.05875 },
          { level: 2, levelValue: 2, resolution: 0.3515625, scale: 147748796.52937502 },
          { level: 3, levelValue: 3, resolution: 0.17578125, scale: 73874398.264687508 },
          { level: 4, levelValue: 4, resolution: 0.087890625, scale: 36937199.132343754 },
          { level: 5, levelValue: 5, resolution: 0.0439453125, scale: 18468599.566171877 },
          { level: 6, levelValue: 6, resolution: 0.02197265625, scale: 9234299.7830859385 },
          { level: 7, levelValue: 7, resolution: 0.010986328125, scale: 4617149.8915429693 },
          { level: 8, levelValue: 8, resolution: 0.0054931640625, scale: 2308574.9457714846 },
          { level: 9, levelValue: 9, resolution: 0.00274658203125, scale: 1154287.4728857423 },
          { level: 10, levelValue: 10, resolution: 0.001373291015625, scale: 577143.73644287116 },
          { level: 11, levelValue: 11, resolution: 0.0006866455078125, scale: 288571.86822143558 },
          { level: 12, levelValue: 12, resolution: 0.00034332275390625, scale: 144285.93411071779 },
          { level: 13, levelValue: 13, resolution: 0.000171661376953125, scale: 72142.967055358895 },
          { level: 14, levelValue: 14, resolution: 8.58306884765625e-005, scale: 36071.483527679447 },
          { level: 15, levelValue: 15, resolution: 4.291534423828125e-005, scale: 18035.741763839724 },
          { level: 16, levelValue: 16, resolution: 2.1457672119140625e-005, scale: 9017.8708819198619 },
          { level: 17, levelValue: 17, resolution: 1.0728836059570313e-005, scale: 4508.9354409599309 },
          { level: 18, levelValue: 18, resolution: 5.3644180297851563e-006, scale: 2254.4677204799655 },
          { level: 19, levelValue: 19, resolution: 2.68220901489257815e-006, scale: 1127.23386023998275 },
          { level: 20, levelValue: 20, resolution: 1.341104507446289075e-006, scale: 563.616930119991375 },
        ]
      },
      tileInfo_3857:{
        dpi: 96,
        origin: {
          x: -20037508.342787,
          y: 20037508.342787
        },
        rows: 256,
        cols: 256,
        spatialReference: {
          "wkid": 102100,
          "latestWkid": 3857
        },
        lods: [
          {
              "level": 1,
              "resolution": 78271.51696399994,
              "scale": 295828763.795777
          },
          {
              "level": 2,
              "resolution": 39135.75848200009,
              "scale": 147914381.897889
          },
          {
              "level": 3,
              "resolution": 19567.87924099992,
              "scale": 73957190.948944
          },
          {
              "level": 4,
              "resolution": 9783.93962049996,
              "scale": 36978595.474472
          },
          {
              "level": 5,
              "resolution": 4891.96981024998,
              "scale": 18489297.737236
          },
          {
              "level": 6,
              "resolution": 2445.98490512499,
              "scale": 9244648.868618
          },
          {
              "level": 7,
              "resolution": 1222.992452562495,
              "scale": 4622324.434309
          },
          {
              "level": 8,
              "resolution": 611.4962262813797,
              "scale": 2311162.217155
          },
          {
              "level": 9,
              "resolution": 305.74811314055756,
              "scale": 1155581.108577
          },
          {
              "level": 10,
              "resolution": 152.87405657041106,
              "scale": 577790.554289
          },
          {
              "level": 11,
              "resolution": 76.43702828507324,
              "scale": 288895.277144
          },
          {
              "level": 12,
              "resolution": 38.21851414253662,
              "scale": 144447.638572
          },
          {
              "level": 13,
              "resolution": 19.10925707126831,
              "scale": 72223.819286
          },
          {
              "level": 14,
              "resolution": 9.554628535634155,
              "scale": 36111.909643
          },
          {
              "level": 15,
              "resolution": 4.77731426794937,
              "scale": 18055.954822
          },
          {
              "level": 16,
              "resolution": 2.388657133974685,
              "scale": 9027.977411
          },
          {
              "level": 17,
              "resolution": 1.1943285668550503,
              "scale": 4513.988705
          },
          {
              "level": 18,
              "resolution": 0.5971642835598172,
              "scale": 2256.994353
          }
        ]
      },
    }
  },
  mutations: {//同步
    
  },
  actions: { //异步

  }
})
export default store;